package com.shadow.beanFactoryPostProcessor.test;

import com.shadow.beanFactoryPostProcessor.test.beanNameGenerator.MyBeanNameGenerator2;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.Map;

/**
 * @author VernHe
 * @date 2021年09月15日 14:35
 */
public class Main {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
//		applicationContext.setBeanNameGenerator(new MyBeanNameGenerator2());
		applicationContext.register(Config.class);
		applicationContext.refresh();

//		Map<String, BeanFactoryPostProcessor> beansOfType = applicationContext.getBeansOfType(BeanFactoryPostProcessor.class);
//		applicationContext.getBeansOfType(BeanDefinitionRegistryPostProcessor.class);
	}
}
